package com.iknight.mgr.mapper;

import com.iknight.mgr.core.base.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**
 * Created by jeryzym on 2017/7/27.
 */
@Repository
public interface OrgMapper<T extends Serializable, PK extends Serializable> extends BaseMapper<T, PK> {
    List<T> selectAll();

    void changeOrgPid(@Param("org_id") String org_id, @Param("p_org_id") String p_org_id);

    List<T> getTreeNode(@Param("p_org_id") String p_org_id);
}
